//this class use ace library mutex to implement muteximpl interface
//andycai_sc 2011-05-12

#ifndef ACETHREADMUTEXIMPL_H
#define ACETHREADMUTEXIMPL_H


#include  <ace/Thread_Mutex.h>
#include "GParallel/GMutexImpl.h"

class ACEThreadMutexImpl : public GMutexImpl
{
public:
    ACEThreadMutexImpl();
    virtual ~ACEThreadMutexImpl();

    void lockImpl();
    void unlockImpl();

private:
    ACE_Thread_Mutex m_mutex;
};

#endif // ACETHREADMUTEXIMPL_H
